package com.zzb.array;

import java.util.Random;

public class ArrayTest1 {
    public static void main(String[] args) {
        int[] arr = new int[5];
        //随机数
        Random random = new Random();
        for (int i = 0; i < arr.length; i++) {
            arr[i] = random.nextInt(61) + 20;
        }
        for (int num : arr) {
            System.out.println(num);
        }
    }
}
